import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import installElementPlus from './plugins/element'
import {library} from '@fortawesome/fontawesome-svg-core'
import { FontAwesomeIcon} from "@fortawesome/vue-fontawesome";
import { faGithub } from '@fortawesome/free-brands-svg-icons'
library.add(faGithub)

import { Request} from "@/api/request";
import VueAxios from "vue-axios";
const app = createApp(App)
app.use(VueAxios, Request.init())
app.component('font-awesome-icon', FontAwesomeIcon)
installElementPlus(app)
app.use(router).mount('#app')
import VMdPreview from '@kangc/v-md-editor/lib/preview';
import '@kangc/v-md-editor/lib/style/preview.css';
import VMdEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js';
import '@kangc/v-md-editor/lib/theme/style/github.css';
import hljs from 'highlight.js';

VMdPreview.use(githubTheme, {
    Hljs: hljs,
});
VMdEditor.use(githubTheme, {
    Hljs: hljs,
});
app.use(VMdPreview);
app.use(VMdEditor);
